from . import index_blu
from info import redis_store


@index_blu.route('/', methods=['GET', 'POST'])
def index():
    # 验证redis链接
    redis_store.set('name', 'xiaoming')
    # session['name'] = 'xiaoming2'

    # import logging
    # logging.fatal("This is a fatal log.")
    # logging.error("This is a error log.")
    # logging.warning("This is a warning log.")
    # logging.info("This is a info log.")
    # logging.debug("This is a debug log.")
    # current_app.logger.fatal('fatal')
    # current_app.logger.error('error')
    # current_app.logger.warning('warning')
    # current_app.logger.info('info')
    # current_app.logger.debug('debug')




    return 'hello world'
